package com.demo.app.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 鉴权拦截异常
 * </p>
 *
 * @author zhangxt
 * @date 2023/11/1
 */

@Getter
@Setter
public class PermissionException extends RuntimeException {
    private String message;
    private int httpStatus;
    private int code;

    public PermissionException(String message) {
        super(message);
    }

    public PermissionException(String message, int httpStatus) {
        super(message);
        this.message = message;
        this.httpStatus = httpStatus;
    }
}
